<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//前台收货信息控制器
class AddressController extends Controller{
	private $model;
	public function __init(){
	    $this->model = new \Common\Model\user_address;
	}
	//默认
	public function index(){
		if(IS_POST){
			$ua_address11 = $_POST['ua_address1'];
			$ua_address22 = $_POST['ua_address2'];
			$ua_address33 = $_POST['ua_address3'];
			$arr = array(
				$ua_address11,
				$ua_address22,
				$ua_address33,
			);
			$_POST['ua_address'] = implode('-', $arr);
			if(!$this->model->store()) View::error($this->model->getError());
			View::success('添加成功');
		}
	}

	

	
}